Skip to content

fix(deps): move to @doist/mcp-core 0.4.0, and run its shared suites - #86

Merged
scottlovegrove merged 1 commit into
mainfrom
test/mcp-core-suites
Nov 9, 2026
Merged

scottlovegrove merged 1 commit into
mainfrom
test/mcp-core-suites

Conversation

@scottlovegrove

Copy link
Copy Markdown
Collaborator

What

@doist/mcp-core 0.4.0 ships two suites generalised from this repo's own tests (todoist/mcp-core#7). Both test files now call them:

  • src/tools/tool-annotations.test.ts → describeToolAnnotations. The 22 tools' expected titles and hints are unchanged, now keyed by ToolNames. They're checked as a client receives them on tools/list, with exact equality and the openWorldHint: false default included. The old test read them off a McpServer.prototype.registerTool spy, matching only partially. It also fails if a tool is advertised without an expectation, or expected but not advertised.
  • src/token-footprint.test.ts → describeTokenFootprint. It keeps the 13,250 budget and the MCP_TOKEN_BUDGET override that npm run verify strips. The measurement is unchanged: 13,031 tokens (11,553 for the tool list, 1,478 for the instructions).

.agents/skills/write-tests/references/test-rules.md cited line 198 of the old annotations test as an example of a toBeDefined() guard. That line is gone, and the row's other example (src/tools/get-mentions.test.ts:54) stays.

The mcp-core bump also moves from 0.3.0 to 0.4.0. The rest of 0.4.0 (the host helpers from todoist/mcp-core#8) isn't used here. fix(deps): so it releases and todoist-ai-integrations gets a single copy of mcp-core.

Verification

  • npm run verify passes. The annotations suite runs 23 tests, one per tool plus the coverage check.
  • With MCP_TOKEN_BUDGET=1, the footprint suite fails and prints the same 13,031 tokens the old test measured.

mcp-core 0.4.0 ships describeToolAnnotations and
describeTokenFootprint, generalised from this repo's own tests, so both
now call them:

- tool-annotations.test.ts keeps every tool's expected title and hints,
  now keyed by tool name, and checks them as a client receives them on
  tools/list rather than off a registerTool spy.
- token-footprint.test.ts keeps its 13,250 budget and the
  MCP_TOKEN_BUDGET override; the measurement is unchanged (13,031).

The write-tests rules cited the old annotations test as a guard
example; the other example in that row stays.
@scottlovegrove scottlovegrove self-assigned this Nov 9, 2026

@doistbot doistbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR updates fix(deps): move to @doist/mcp-core 0.4.0, and run its shared suites. No issues were flagged in the reviewed diff.

Share Feedback • Review Logs

@scottlovegrove scottlovegrove added the 🚢 Ship PR requires passing checks before merge, but no independent human review. label Nov 9, 2026
@scottlovegrove
scottlovegrove merged commit 430db3c into main Nov 9, 2026
4 checks passed
@scottlovegrove
scottlovegrove deleted the test/mcp-core-suites branch November 9, 2026 13:56
doist-release-bot Bot added a commit that referenced this pull request Nov 9, 2026
## [10.0.2](v10.0.1...v10.0.2) (2026-11-09)

### Bug Fixes

* **deps:** move to @doist/mcp-core 0.4.0, and run its shared suites ([#86](#86)) ([430db3c](430db3c))
@doist-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 10.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released 🚢 Ship PR requires passing checks before merge, but no independent human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants